package com.easyskool.constants;

public class MessageConstants {

	public static final String ERROR_CODE = "ErrorCode";
	public static final String ERROR_MESSAGE = "ErrorMessage";
	
	public static final int STATUS_ACCEPTED = 200; 
	public static final int STATUS_INTERNAL_SERVER_ERROR = 500;
	public static final int STATUS_BAD_REQUEST  = 400;
	public static final int STATUS_SERVICE_UNAVAILABLE = 503;
	public static final int STATUS_UNAUTHORIZED = 401;

	public static final String ERROR_CODE_INVALID_USER = "PMSERR001";
	public static final String ERROR_MESSAGE_INVALID_USER = "Invalid User";

	public static final String ERROR_CODE_DATA_NOT_LOADED = "PMSERR002";
	public static final String ERROR_MESSAGE_DATA_NOT_LOADED = "Data not loaded for client";
	
	public static final String ERROR_CODE_EXCEPTION_IN_SERVICE = "PMSERR003";
	public static final String ERROR_MESSAGE_EXCEPTION_IN_SERVICE = "Internal exception in service";
	
	public static final String ERROR_CODE_REQUEST_EXCEPTION = "PMSERR004";
	public static final String ERROR_MESSAGE_REQUEST_EXCEPTION = "Invalid request or parameters";
	
	public static final String ERROR_CODE_INVALID_SESSION = "PMSERR005";
	public static final String ERROR_MESSAGE_INVALID_SESSION = "Invalid Session.May be logged in at some other location.";
	public static final String ERROR_MESSAGE_PROBLEM_WITH_SESSION_INSERT = "Problem with login.Please try again after sometime.";
	public static final String SESSION_ID = "SessionId";
	
	public static final String ERROR_MESSAGE_INVALID_CREDENTIALS  = "Invalid Credentials";
	public static final String MESSAGE_USER_AUTHENTICATED  = "User Authenticated";
	public static final String MESSAGE_USER_SESION_INVALIDATED  = "User Session Invalidated";
	public static final String ERROR_MESSAGE_USER_SESION_INVALIDATED  = "Error In Session Invalidation";
	
	public static final String ERROR_IN_VALIDATING_CREDENTIALS  = "Error in login.Pls. try again.";
	public static final String ERROR_IN_GEN_SEND_OTP  = "Error in generating OTP.Please try again.";
	public static final String MESSAGE_OTP_GENERATED  = "OTP generated and sent to your ";
	public static final String ERROR_IN_UPDATING_AFTER_OTP_GENERATE  = "OTP sent but there is system error.Pls generate OTP again.";
	
	public static final String ERROR_IN_VALIDATING_OTP  = "Error in validating OTP.Pls. login again.";
	public static final String OTP_NOT_VALID  = "OTP not valid.Pls. login again.";
	public static final String OTP_VALID  = "OTP Verified!";
	
	public static final String STATUS_CODE  = "statusCode";
	public static final String STATUS_MESSAGE  = "statusMessage";
	public static final String CLIENT  = "client";	
	
	public static final String STATUS = "status";
	public static final String SUCCESS = "success";
	public static final String TOKEN = "token";
	
	public static final String OTP_REQUEST_ID = "requestId";
	public static final String OTP_PUBLISH_ID = "publishId";
	public static final String OTP_NUMBER = "otpNumber";
	public static final String PASSWORD_CHANGE_SUCCESS = "password change successfuly";
	public static final String PASSWORD_CHANGE_FAIL = "Error in password change";
	
	public static final String USER_LOGGED_OUT = "logout";
	
	public static final String RESPONSE_CODE = "responseCode";
	public static final String RESPONSE_MESSAGE = "responseMessage";
	public static final String HIBERNATE_EXCEPTION = "hibernateException";
	public static final String EXCEPTION = "exception";
	public static final String IO_EXCEPTION = "ioException";
	
	public static final String CREATE = "create";
	public static final String GET = "get";
	public static final String UPDATE = "update";
	public static final String DELETE = "del";
	
	public static final String AUTHORIZED_ROLES = "authorizedRoles";
	public static final String LOGOUT = "logout";
	public static final String LOGGEDOUT = "You are already logged out";
	public static final String LOGOUTFAIL = "Log out fail";

	public static final String ALREADY_EXISTS = "ID already exists!";
	public static final String ERROR = "An error occured!";
	
	public static final String SCHOOL_REQUEST_APPROVE_SUBJECT="For Admin @ easyskool.com";
	public static final String SCHOOL_REQUEST_APPROVE_CONTENT="Your School Request has been approved";
}
